<?php

class Controller_Product
{
	function execute($request)
	{
		$db = Mongo_Document::factory('product') -> collection();

		$filter = array();

		$filter['name'] = '/$q/';

		$q = $request -> getParam('q');

		$items = $db -> find();

		$request -> response = View::render($data = array('items' => $items), $script = 'controller/product/index.tpl');

	}

}
